<script setup lang="ts"></script>

<template>
  <div class="app-container">
    <header>
      <el-menu
        :router="true"
        mode="horizontal"
        class="el-menu-demo"
        background-color="#545c64"
        text-color="#fff"
        active-text-color="#ffd04b"
        :collapse-transition="false"
      >
        <el-menu-item index="/file-list">文件管理</el-menu-item>
        <el-menu-item index="/qa">文件智能问答</el-menu-item>
        <el-menu-item index="/system/prompt">提示词管理</el-menu-item>
      </el-menu>
    </header>
    <main>
      <RouterView />
    </main>
  </div>
</template>

<style scoped>
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  position: static;
  background-color: #545c64;
  width: 100%;
  flex-shrink: 0;
}

.el-menu-demo {
  width: 90%;
  margin: 0 auto;
}

main {
  flex: 1;
  width: 90%;
  margin: 0 auto;
  padding: 2% 0;
  background-color: #f5f7fa;
}

@media (max-width: 100%) {
  .el-menu-demo,
  main {
    width: 95%;
    padding: 1% 0;
  }
}
</style>

<style>
.system-menu {
  margin-top: 0 !important;
}
</style>
